#!/usr/bin/env node

//spawn是每两秒打印，exec是最后一起打印
const cp=require('child_process'),
  child=cp.spawn('./03-child.js');

console.log('I am father process.id:',process.pid);

child.stdout.pipe(process.stdout);
child.stderr.pipe(process.stderr);

